<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>登陆开心扒</title>
<jsp:include page="/public/header-meta.jsp"></jsp:include>
<style type="text/css">
body {
	background: url(${pageContext.request.contextPath}/common/images/bg-login.jpg) !important;
}
</style>
</head>

<body onload="Load('')">
	<jsp:include page="/public/header.jsp"></jsp:include>
	<div class="container">
		<div class="row">
			<div class='col-md-8'>
				<div class="alert alert-block alert-success">
					<button type="button" class="close" data-dismiss="alert">
						<i class="icon-remove"></i>
					</button>

					<p>
						<strong> <i class="icon-ok"></i> 恭喜!
						</strong> 您已注册成功,还有 <span id="time"></span>秒跳转.
					</p>

				</div>
			</div>
			<!-- ./col-md-8 -->
		</div>
		<!--./row  -->
	</div>
	<!-- /container -->

	<script type="text/javascript">
		var url;
		function Load(url) {
			for (var i = 5; i > 0; i--) {

				window.setTimeout('doUpdate(' + i + ')', (5 - i) * 1000);
			}
		}
		function doUpdate(num) {
			document.getElementById("time").innerHTML = num;
			if (num == 1) {
				window.location = "user!login";
			}

		}
	</script>